package com.zyb.lmbackend.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 任务状态 DTO：用于进度展示（SSE/JSON）。
 */
@Data
public class TaskStatusDto {
    private Long id;
    private Integer version;
    private String status;
    private Integer total;
    private Integer processed;
    private Integer success;
    private Integer failed;
    @JsonProperty("started_at")
    private LocalDateTime startedAt;
    @JsonProperty("finished_at")
    private LocalDateTime finishedAt;
}
